home *** CD-ROM | disk | FTP | other *** search
-
-
-
- eeeessssppppnnnnoooottttiiiiffffyyyy((((1111)))) eeeessssppppnnnnoooottttiiiiffffyyyy((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- espnotify - a generic command line notification utility for SGI Embedded
- Support Partner
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////uuuussssrrrr////bbbbiiiinnnn////eeeessssppppnnnnoooottttiiiiffffyyyy [[[[----nnnn priority ----dddd] -E <_e-_m_a_i_l _a_d_d_r_e_s_s_e_s> [----FFFF <_S_e_n_d_e_r _a_d_d_r_e_s_s>]
- { ----ffff <_f_i_l_e_n_a_m_e> | ----mmmm <_m_e_s_s_a_g_e> }
- [----oooo <_p_r_o_c_e_s_s_i_n_g _o_p_t_i_o_n_s>] [----ssss <_s_u_b_j_e_c_t>]
-
- ////uuuussssrrrr////bbbbiiiinnnn////eeeessssppppnnnnoooottttiiiiffffyyyy [[[[----nnnn priority ----dddd] -c <_m_e_s_s_a_g_e> [----aaaa] [----DDDD <_D_i_s_p_l_a_y>] [----gggg <_g_e_o_m_e_t_r_y>]
- [----iiii <_i_c_o_n _i_m_a_g_e>] [----tttt <_t_i_t_l_e>]
-
- ////uuuussssrrrr////bbbbiiiinnnn////eeeessssppppnnnnoooottttiiiiffffyyyy [[[[----nnnn priority ----dddd] -C <_m_e_s_s_a_g_e> ----pppp <_p_a_g_e_r_s> [----SSSS <_p_a_g_i_n_g _s_e_r_v_i_c_e>]
- [----QQQQ <_q_p_a_g_e _s_e_r_v_e_r>]
-
- ////uuuussssrrrr////bbbbiiiinnnn////eeeessssppppnnnnoooottttiiiiffffyyyy [[[[----nnnn priority ----dddd] -A <_m_e_s_s_a_g_e>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _e_s_p_n_o_t_i_f_y is a generic command line utility that is packaged with SGI
- Embedded Support Partner (see eeeesssspppp(5) for more details). It is used to
- perform various types of notifications.
-
- _e_s_p_n_o_t_i_f_y can post a given message to e-mail addresses, can display a
- message on local/remote X display, can post a message to a paging service
- to be delivered to a pager or can display the message on the system
- console.
-
- _e_s_p_n_o_t_i_f_y supports various command line options for various types of
- notifications. These options are discussed in detail later in this man
- page. More than one type of notification can be specified at a time.
- There are some general options that are applicable to all types of
- notifications. These general options are :
-
- ----dddd This causes espnotify to display debug information.
-
- ----nnnn _r_a_n_g_e _f_r_o_m _1 _t_o _7
- Provide a numeric priority for the message (defaults to 7). The
- priorities are decoded as follows :
- 1 and 2 Critical Message
- 3 Error Message
- 4 Warning Message
- 5 to 7 Informational Message
-
-
- EEEE----MMMMAAAAIIIILLLL NNNNOOOOTTTTIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- The first synopsis is for posting a message to specified e-mail
- addresses. _e_s_p_n_o_t_i_f_y invokes /usr/lib/sendmail to deliver message to the
- e-mail addresses specified with -_E option. -_F option can be used to
- specify the e-mail sender address.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- eeeessssppppnnnnoooottttiiiiffffyyyy((((1111)))) eeeessssppppnnnnoooottttiiiiffffyyyy((((1111))))
-
-
-
- The options for e-mail notification include:
-
- ----EEEE _e-_m_a_i_l _a_d_d_r_e_s_s_e_s
- Comma separated list of e-mail addresses for use in e-mail
- notifications. This option must be specified for e-mail
- notification to work.
-
- ----FFFF _S_e_n_d_e_r _E_m_a_i_l _a_d_d_r_e_s_s
- This is to override ESP Customer Profile user-defined _S_e_n_d_e_r _E_m_a_i_l
- _A_d_d_r_e_s_s value which is actually passed to espnotify as an
- environment variable EEEESSSSPPPP____MMMMAAAAIIIILLLL____FFFFRRRROOOOMMMM. If none of them are defined(or
- empty), the sender is set to the current executing username.
-
- ----ffff _f_i_l_e_n_a_m_e
- This specifies a text file content of which is used for e-mail
- notification. A binary file may be sent if the ----oooo option is used.
-
- ----mmmm _m_e_s_s_a_g_e
- This option is used when the content for an email notification is to
- be a string. All strings must be enclosed in double quotes. Please
- note that ----mmmm and ----ffff options are mutually exclusive. The message may
- contain special MMMMeeeessssssssaaaaggggeeee FFFFoooorrrrmmmmaaaatttt CCCCooooddddeeee.
-
- ----oooo _p_r_o_c_e_s_s_i_n_g _o_p_t_i_o_n_s
- Processing options for the message. Supported options are _C_O_M_P
- (compress and uuencode the message) and _E_N_C_O (uuencode the message).
- Processing options are valid only with ----ffff option.
-
- ----ssss _s_u_b_j_e_c_t
- Subject for the message. In case no subject is given, a default
- subject is provided by _e_s_p_n_o_t_i_f_y. The format of the default subject
- is as follows :
-
- [HOSTNAME]: <text>
-
- where,
- HOSTNAME is the name of the host
- <text> can be "Critical System Error" or "System Error" or
- "System Warning" or "System Information" depending
- on priority.
-
- If both subject and priority are specified, the subject specified
- with -s overrides the default subject. If neither a subject or
- priority is specified, the subject will default to "[HOSTNAME]:
- System Information".
-
- GGGGRRRRAAAAPPPPHHHHIIIICCCCAAAALLLL NNNNOOOOTTTTIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- The second synopsis is for displaying a message (graphical notification)
- to a local/remote X display.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- eeeessssppppnnnnoooottttiiiiffffyyyy((((1111)))) eeeessssppppnnnnoooottttiiiiffffyyyy((((1111))))
-
-
-
- The options for graphical notification include:
-
- ----aaaa This option specifies that audio should be used along with graphical
- notification. Audio notification cannot be run without graphical
- notification. Audio is played via the /usr/sbin/ssplay command on
- which host it is executed. It is not possible to play audio on a
- remote host. NNNNOOOOTTTTEEEE:::: this is not supported on Linux.
-
- ----cccc _m_e_s_s_a_g_e
- A text string for use as GUI notification content. Text must be
- contained within double quotes if spaces are needed in the string.
- This option must be specified to perform a graphical notification.
- The message may contain special MMMMeeeessssssssaaaaggggeeee FFFFoooorrrrmmmmaaaatttt CCCCooooddddeeee.
-
- ----DDDD _D_i_s_p_l_a_y
- Specifies an alternate display host on which to display a graphical
- notification. The default is to display on the host specified in
- the $DISPLAY environment variable.
-
- ----gggg _g_e_o_m_e_t_r_y
- X compatible geometry string in the form WIDTHxHEIGHT+XOFF+YOFF
- where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a
- preferred size and location for this application's main window.
-
- ----iiii _i_c_o_n _i_m_a_g_e
- This option specifies the icon to display within graphical
- notifications.
-
- There are four options:
-
- _CCCC_rrrr_iiii_tttt_iiii_cccc_aaaa_llll
- _EEEE_rrrr_rrrr_oooo_rrrr
- _WWWW_aaaa_rrrr_nnnn_iiii_nnnn_gggg
- _IIII_nnnn_ffff_oooo
-
- If a priority is set with the -n option, the icon is set
- accordingly. If neither priority or icon_image is specified, the
- "Info" icon will be defaulted to. NNNNOOOOTTTTEEEE:::: On Linux, this option is
- deprecated. However, option -_n will be used instead and a color of
- Red will be assigned for values of n up to 3, Yellow for 4, nothing
- otherwise.
-
- CCCCaaaavvvveeeeaaaattttssss::::
- On Linux xmessage is used. On Linux, xmessage is used instead.
-
- ----tttt _t_i_t_l_e
- This specifies the title of the graphical notification. If a
- numeric notification priority is set with -n, title defaults to:
-
- Priority 1 - "Critical System Error"
- Priority 2 - "System Error"
- Priority 3 - "System Warning"
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- eeeessssppppnnnnoooottttiiiiffffyyyy((((1111)))) eeeessssppppnnnnoooottttiiiiffffyyyy((((1111))))
-
-
-
- Priority 4 - "System Information"
-
- If neither a title nor priority are specified the title will default
- to: "System information" If a priority is specified, a custom
- title can still be specified.
-
- PPPPAAAAGGGGEEEERRRR NNNNOOOOTTTTIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- The third synopsis is for sending a message to a specified pager.
- _e_s_p_n_o_t_i_f_y uses _q_p_a_g_e (see _Q_u_i_c_k_P_a_g_e(1m) for more details) to deliver the
- message. The QuickPage daemon must be running on the machine that
- delivers the page. This daemon is started during system startup if
- chkconfig variable, quickpage is turned on. (NNNNOOOOTTTTEEEE:::: this may not be true
- for Linux.)
-
- NNNNOOOOTTTTEEEE:::: The Linux version of ESP do not install qpage but ESP will honor it
- if it is installed in /usr/local/bin directory.
-
- The configuration of the daemon can be done via SGI Embedded Support
- Partner User Interface. Please refer to the SGI Embedded Support Partner
- User's Guide for more details.
-
- The options for paging notification include:
-
- ----CCCC _m_e_s_s_a_g_e
- Specifies a text string for use as alphanumeric page content. Text
- must be contained within double quotes if spaces are needed in the
- string. This option must be specified for paging notification to
- work. The message may contain special MMMMeeeessssssssaaaaggggeeee FFFFoooorrrrmmmmaaaatttt CCCCooooddddeeee
-
-
- ----pppp _p_a_g_e_r_s
- Comma separated list of pager or pager-ids that are to receive a
- notification. One or more of each can be specified on the command
- line. Pager specifications are stored in /etc/qpage.cf file on the
- server that is delivering the page. The pagers can be set from the
- SGI Embedded Support Partner User Interface.
-
-
- ----SSSS _p_a_g_i_n_g _s_e_r_v_i_c_e
- This options allows the specification of an alternate paging
- service. Service specifications are stored in /etc/qpage.cf file on
- the server that is delivering the page. These services can be set
- from the SGI Embedded Support Partner User Interface. If no service
- is specified then the service with name set as 'default' is used to
- deliver the page.
-
-
- ----QQQQ _q_p_a_g_e _s_e_r_v_e_r
- This option allows the specification of an alternate server on which
- the QuickPage daemon is running. If this option is not specified a
- connection to the local Qpage daemon will be tried.
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- eeeessssppppnnnnoooottttiiiiffffyyyy((((1111)))) eeeessssppppnnnnoooottttiiiiffffyyyy((((1111))))
-
-
-
- CCCCOOOONNNNSSSSOOOOLLLLEEEE NNNNOOOOTTTTIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- The fourth synopsis is to display message on the terminal/system console.
- The message specified with ----AAAA is displayed on the standard output of the
- terminal if open. Otherwise, the message is displayed on the system
- console. The message may contain special MMMMeeeessssssssaaaaggggeeee FFFFoooorrrrmmmmaaaatttt CCCCooooddddeeee.
-
-
- MMMMEEEESSSSSSSSAAAAGGGGEEEE FFFFOOOORRRRMMMMAAAATTTT CCCCOOOODDDDEEEESSSS
- Any _m_e_s_s_a_g_e can contain _f_o_r_m_a_t _c_o_d_e_s that has special meaning when EEEESSSSPPPP
- execute the action. Just specify event information to be included in
- the notification message. You can include any of the following format
- codes:
-
- %H = host name where the event originated (default)
- %D = event data (this is the data received with the event) (default)
- %z = Event time stamp (in mm/dd/yyyy hh:mm:ss format) (default)
- %c = event class description
- %C = event class ID
- %e = event type description
- %T = event type ID
- %O = event ID (as registered by ESP)
- %F = forwarder hostname (in case of SGM)
- %I = system ID
-
- NNNNOOOOTTTTEEEE: Message code are for general usage , ie. for use with other ESP actions
- scripts.
-
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- Send a prioritized GUI notification.
-
- % espnotify -n 2 -c "Widget 25 failure"
-
- Send a prioritized e-mail notification with string content along with a
- page. In this example we are using a "pager" definiton defined in
- /etc/qpage.cf as the argument for the -p parameter.
-
- % espnotify -n 2 -E john@xyz.com -m "System disk is nearing capacity" -p
- johndoe -C "System disk is nearing capacity"
-
- Send a page to "johndoe". Use an alternate Qpage server along with an
- alternate paging service. "johndoe" along with the alternate paging
- service name must exist in /etc/qpage.cf configuration file on the
- alternate QuickPage Server.
-
- % espnotify -C "System temperature too high" -Q pager.server.com -S
- airtouch -p johndoe
-
- % espnotify -E esp_users@xyz.com -m "On %H at %z : %D(%T)"
-
- Send a non-prioritized e-mail message notification with string content
- made of the host (%H) where the event originated. Date(%z), event
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-
-
-
- eeeessssppppnnnnoooottttiiiiffffyyyy((((1111)))) eeeessssppppnnnnoooottttiiiiffffyyyy((((1111))))
-
-
-
- description(%D) and ESP event number(%T) are also supplied.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- Mail(1), QuickPage(1m), esp(5).
-
- RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
- SGI Embedded Support Partner Documentation.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 6666
-
-
-
-